from django.shortcuts import render_to_response
from cudoc.space.models import Space

def index(request):
    all_spaces = Space.objects.order_by('name')

    return render_to_response('dashboard/index.html', {'spaces': all_spaces, 'active_section': 'dashboard'})

